From: Dan Nicholson Date: Thu, 22 Sep 2016 18:53:19 +0000 (-0700) Subject: repo: Fix list_objects annotations X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~41^2~23 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=300752e55aa42ef8b60c7a0765b5cd14e1e9b98e;p=ostree.git repo: Fix list_objects annotations Without the element-type annotations, bindings don't know how to handle the elements of the hash table. Since the table is created with destroy functions, the caller does not own the elements, so transfer container is used. Closes: #635 Approved by: cgwalters --- diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c index 35136c76..3b3aa664 100644 --- a/src/libostree/ostree-repo.c +++ b/src/libostree/ostree-repo.c @@ -3548,7 +3548,8 @@ ostree_repo_load_commit (OstreeRepo *self, * ostree_repo_list_objects: * @self: Repo * @flags: Flags controlling enumeration - * @out_objects: (out): Map of serialized object name to variant data + * @out_objects: (out) (transfer container) (element-type GVariant GVariant): + * Map of serialized object name to variant data * @cancellable: Cancellable * @error: Error * @@ -3605,7 +3606,8 @@ ostree_repo_list_objects (OstreeRepo *self, * ostree_repo_list_commit_objects_starting_with: * @self: Repo * @start: List commits starting with this checksum - * @out_commits: Array of GVariants + * @out_commits: (out) (transfer container) (element-type GVariant GVariant): + * Map of serialized commit name to variant data * @cancellable: Cancellable * @error: Error *